home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 205_01 / freq.doc < prev    next >
Text File  |  1980-01-01  |  896b  |  27 lines

  1. -------------------------------------------------------------------------------
  2.  FREQ
  3. -------------------------------------------------------------------------------
  4.  
  5. Format:
  6.  
  7.      freq [< filename] 
  8.  
  9. Purpose:
  10.  
  11. FREQ is a text filter that takes a sorted list of words from the standard 
  12. input and outputs a list of the unique words in the input and the frequency of 
  13. their occurrence.
  14.  
  15. Examples:
  16.  
  17. Make a list of the unique words in the file named original and print that list 
  18. on the printer.
  19.  
  20.      freq <original >prn 
  21.  
  22. Place all of the words in the file named textfile on individual lines, sort
  23. those lines, make a list of how many times the words occurred, and save that 
  24. list as the file named wordlist.
  25.  
  26.      words < textfile | sort | freq > wordlist
  27.